package cn.ssm.pojo;

/**
 * 用户表
 * 
 * @author 朱海松
 *
 */
public class User {
	private int id;// 用户编号
	private String userName;// 用户账户 必须为手机号
	private String password;// 密码
	private String headPortrait;// 用户头像
	private int vipId;// 会员编号 默认-1 表示非会员
	private String nickName;//昵称
	private int sex;//性别
	
	public User(int id, String userName, String password, String headPortrait, int vipId, String nickName, int sex) {
		super();
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.headPortrait = headPortrait;
		this.vipId = vipId;
		this.nickName = nickName;
		this.sex = sex;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public User() {

	}

	public User(int id, String userName, String password, String headPortrait, int vipId) {
		super();
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.headPortrait = headPortrait;
		this.vipId = vipId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getHeadPortrait() {
		return headPortrait;
	}

	public void setHeadPortrait(String headPortrait) {
		this.headPortrait = headPortrait;
	}

	public int getVipId() {
		return vipId;
	}

	public void setVipId(int vipId) {
		this.vipId = vipId;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", password=" + password + ", headPortrait=" + headPortrait
				+ ", vipId=" + vipId + "]";
	}

}
